<?php
namespace app\common\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'idcard'  =>  'unique:user',
        'phone'  =>  'unique:user',
        'username'  =>  'unique:user',
    ];

    protected $message = [
        'idcard'  =>  '身份证已经存在',
        'phone'  =>  '手机号已经存在',
        'username'  =>  '用户名已经存在',
    ];
}
